package top.yaofengqiao.springcloudsimple.auth.biz.domain.user.service.impl;

import org.springframework.stereotype.Service;
import top.yaofengqiao.springcloudsimple.auth.biz.domain.user.model.entity.UserEntity;
import top.yaofengqiao.springcloudsimple.auth.biz.domain.user.repository.IUserRepository;
import top.yaofengqiao.springcloudsimple.auth.biz.domain.user.service.IUserService;

import javax.annotation.Resource;

/**
 * @author yfq
 * @date 2024/6/4 15:56
 * @description
 */
@Service
public class UserService implements IUserService {
    @Resource
    private IUserRepository userRepository;

    @Override
    public UserEntity queryByUsername(String username) {
        return userRepository.queryByUsername(username);
    }

    @Override
    public UserEntity queryById(long userId) {
        return userRepository.queryById(userId);
    }

}
